{include file='header.tpl'}
<div id="index_content">
<h2>Tin nóng hổi - Tin mới</h2>

{foreach from=$thongtin_arr item=item}
<p class="thongtinitem">
<div><a href="javascript: show_content({$item.id});" class="catalogs_index">{$item.title}</a> - Chuyên đề: {$item.catalog_name}</div>

<div class="imageindex"><img src="data/image/upload/thongtin/{$item.img_name_alias}" alt="{$item.img_name_truth}" width="56" height="65"/></div> 

<div class="saboindex">{$item.sabo}</div>
</p>
{foreachelse}
Không có Catalogs nào :D
{/foreach}
</div>
{literal}
<script type="text/javascript">
function show_content(id)
{

  
  



var options = {
    		method : 'post',
    		parameters: {id: id},
    		onSuccess  :  function(transport){
			    $('index_content').innerHTML =  transport.responseText;
		    },
		    onLoading: function(){$('workingMsg').show()},
onLoaded: function(){$('workingMsg').hide()}
    		
    	};    	
    	new Ajax.Request('listcontent.php', options);
    	
	
}
</script>
{/literal}
{include file='footer.tpl'}
